package com.example.busshop.dao;

import com.example.busshop.common.dao.LogicDAO;
import com.example.busshop.entity.User;
import org.springframework.data.jpa.repository.Query;

public interface UserDao extends LogicDAO<User,Long> {
    @Query(value = "select * from user where username=?1",nativeQuery = true)
    User selectByName(String username);
}
